<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>给组件绑定原生事件</title>
		<script type="text/javascript" src="js/vue.js" ></script>
	</head>
	<body>
		<div id="root">
        	<child @click.native="handlerClick"></child>
        </div>
		
		<script>
			
			Vue.component("child", {
				template: "<div>child</div>"
			})
			
			var vm = new Vue({
				el: '#root',
				methods: {
					handlerClick: function() {
						alert("click");
					}
				}
			})
			
		</script>
	</body>
</html>
